package cn.lx.config;

import cn.lx.listener.PaySuccessListener;
import com.google.common.eventbus.EventBus;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @ClassName EventConfig
 * @Description: 事件配置
 * @Author: 落雪
 * @CreateDate: 2025/3/18 07:05
 * @UpdateUser: 落雪
 * @UpdateDate: 2025/3/18 07:05
 * @UpdateRemark:
 * @Version: 1.0
 */
@Configuration
public class EventConfig {

    @Bean
    public EventBus eventBus(PaySuccessListener listener){
        EventBus eventBus = new EventBus();
        eventBus.register(listener);
        return eventBus;


    }
}
